clear all
close all
tab1 = lireodometre('jour20090817.datA');
tab=tab1(2,:);
taille = length(tab);
pas=taille/(24*60);
plot(tab,1:pas:pas*(taille-1));
span = 10;
seuil = 200;
distance=zeros(1,taille);
Perimetre = 153;
delta=0;
for i=1:taille-1
    delta=tab(i+1)-tab(i);
    if(delta<0)
        distance(i+1)=distance(i)-delta*Perimetre/50000; 
    else
        distance(i+1)=distance(i);
    end
end

figure();

plot(distance)

